package hu.jonas.allunit.views;

import hu.jonas.allunit.model.TestResultModel;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

public class TestResultContentProvider implements IStructuredContentProvider {

	@Override
	public Object[] getElements(Object inputElement) {
		if (inputElement instanceof TestResultModel) {
			TestResultModel input = (TestResultModel) inputElement;
			
			return input.getTestResults();
		}
		
		return new Object[] {};
	}

	@Override
	public void dispose() {
	}

	@Override
	public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
	}

}
